package com.c4p.filter;

import com.c4p.feign.Oauth2Feign;
import lombok.AllArgsConstructor;
import org.springframework.cloud.gateway.filter.GatewayFilterChain;
import org.springframework.cloud.gateway.filter.GlobalFilter;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;

@Order(0)
@Component
@AllArgsConstructor
public class Oauth2Filter implements GlobalFilter {

    private Oauth2Feign oauth2Feign;


    @Override
    public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {



        return chain.filter(exchange);
    }
}
